// This scss file is used for fixed MUI
// According to the module partition
//-------------------------------------------------

// Global
//-------------------------------------------------
img {
    width: 100%;
    margin: 0 auto;
}

input, 
textarea {
    border: none;
    background-color: transparent;
}

// Reset mui
// ------------------------------------------------
.mui-content {
    background-color: $light;
}

.#{$namespace}bar {
    box-shadow: none;
}

.mui-navigate-right:after, .mui-push-right:after {
    font-weight: bold;
}

.mui-content > .mui-table-view:first-child {
    margin-top: 0;
}

.mui-table-view-chevron .mui-table-view-cell > a:not(.mui-btn) {
    margin-right: -115px;
}

.mui-table-view-cell, .mui-input-group .mui-input-row{
    &:after {
        left: 0;
    }
}

// 模块分割
.#{$ns}divide-block {
    height: 6px;
    background-color: #f5f5f5;
}

// 顶栏
.pri-bar,.#{$ns}pri-bar {
    border: none;
    box-shadow: none;
    color: $light; 
    background-color: $primary-color;
    height: 45px;
    .mui-title {
        color: $light;
    }
    a {
        color: $light;
    }
}

// Utils
// ----------------------------------------------------
.#{$ns}tac {
    text-align: center !important;
}

.#{$ns}tar {
    text-align: right !important;
 }


// Mine
//-------------------------------------------------
.mine {
    // Table-view样式调整
    .#{$namespace}table-view {
        &:before {
            background-color: #f5f5f5;
        }
        &>.mui-table-view-cell:after {
            background-color: #ddd;
        }
    }
}


// Search
//-------------------------------------------------
.search {
    color: $light-grey;
    background-color: $light;
}


// Login
//-------------------------------------------------

.#{$ns}login {
    position: absolute;
    width: 70%;
    top: 30%;
    left: 15%;  
    background-color: $light;
    .mui-input-group {
        font-size: $fs-m1;
        &:before, &:after {
            height: 0;
        }
        &>.mui-input-row {
            border-radius: 2px;
            background-color: $bg-color;
            &:before, &:after {
                background-color: $light;
            }
            
        }
    }
    .#{$ns}webkit-box {
          display: -webkit-box;
          width: 100%;
          &>input {
            display: block;
            -webkit-box-flex: 1; }
          &>button {
            margin-right: -8px; }
          &>.mui-btn-primary {
            margin-left: 8px;
            height: 40px; }
    }
    input {
        font-size: $fs-m1;
        padding-right: 30px;
        text-align: center;
        background-color: $bg-color;
    }
    .#{$ns}btn-pick {
        width: 100%;
        padding-right: 29px;
        text-align: right;    
    }
    .#{$ns}label-pick {
        width: auto;
    }
}

// Home
// ==================
.#{$ns}home{
    .#{$ns}btn-img-group {
        overflow: hidden;
        background-color: $light;
    }
    .#{$ns}btn-img {
        display:inline-block;
        float:left;
        width:25%;
        border: none;
        padding: 0;
        text-align: center;
        widows: nowrap;
        &>img {
            width: 80%;
            padding-top: 20px;
            padding-bottom: 10px;
        } 
    }
    .#{$ns}info-mine {
        padding-bottom: 25px;
        text-align: center;
        background-color: #fff;
    }
    &.#{$ns}mine {
        .mui-table-view {
            &:before, &:after {
                height: 0;
            }
        }
    }
    
    .#{$namespace}table-view-cell:last-child:before, .#{$namespace}table-view-cell:last-child:after {
        height: 1px;
    }
}

// Helper
//=====================
.#{$ns}helper {
    .mui-pull-right {
        max-width: 70%;
    }
    input {
        font-size: $fs-m1;
        padding-right: 30px;
        text-align: center;
        background-color: $bg-color;
    }
    .#{$ns}btn-pick {
        width: 100%;
        height: 100%;
        padding-right: 29px;
        text-align: right;  
        background-color: $light;  
    }
    .#{$ns}label-pick {
        width: auto;
    }
}

// Component
// -----------------------------------------------

// Buttons
// ===============
.#{$ns}btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 18px;
}

.#{$ns}btn-pick {
    border: none;
    font-size: $fs-m1;
    color: $light-grey;
    background-color: $bg-color;
}

.#{$ns}btn-db {
    width:48%;
    display: inline-block;
    &:nth-child(2n) {
        float: right;
    }
}

// Img
// ===================

.#{$ns}img-add {
    width: 60px;
    height: 60px;
    background-image: url(../images/btn-img-add.png);
    background-size: 100%;
}

.#{$ns}label-pick {
    position: absolute;
    width: auto;
    z-index: 2;
}

// List
// ====================
// 病历列表
.#{$ns}list1 {
    span {
        padding-right: 10px;
    }
    .first-line {
        font-size: 15px;
    }
    .second-line {
        font-size: 13px;
        color: $light-grey;
        &>.date {
            float: right;
            font-size: $fs-s1;
            color: $dark-grey;
        }
    }
}


// Media list
// ====================

.#{$ns}media1 {
    .mui-media-object {
        max-width: 100px;
        height: 75px;
        line-height: 75px;
    }
    
    .mui-media-body {
        max-height: 3*$line-height-default;
    }
    
    p {
        max-height: 2*$line-height-default;
        white-space: normal;
    }
}


// Title
// =====================
// 带分割线的标题
.#{$ns}title-line {
    padding: 25px 10px 10px;
    background-color: $light;
    &:before {
        content: '';
        padding-right: 4px;
        margin-right: 5px;
        background: $primary-color;
    }
    
    &>.mui-pull-right {
        font-size: 14px;
        color: $light-grey;
        font-weight: bold;
        &>.mui-icon-arrowright {
            font-weight: bold;
            color: $primary-color;
        }
    }
}

.#{$ns}title {
    padding: 15px 11px;
    background-color: $light;
}

// Support Bar
.#{$ns}spt {
//  overflow: hidden;
    display: block;
    width: 100%;
    &>.#{$ns}spt-bar{
        float: right;
        color: $light-grey;
        &>.#{$ns}spt-num, &>.#{$ns}disc-num{
            margin-left: -5px;
            padding: 0 5px;
            font-size: 14px;
        }
    }
}

// Articles
.#{$ns}article {
    padding: 0 15px;
    
    &>.#{$ns}spt {
        overflow: hidden;
        font-size: $fs-s1;
        &>.#{$ns}spt-bar>span {
            &:first-child {
                color: $red-color;
            }
            &:nth-child(2n) {
                font-size: $fs-s2;
            }
            &:nth-child(3) {
                color: $primary-color;
            }
        }
    }
    
    &>.#{$ns}title-art {
        padding-top: 10px;
        margin-bottom: 0;
        font-size: $fs-m2;
        font-weight: bold;
        color: $ft-g1;
    }
    
    &>.#{$ns}title-artsub {
        font-size: $fs-s1;
    }
    
    &>.#{$ns}article-main {
        font-size: $fs-m1; 
        color: $ft-g2;
    }
}

// Flex Layout
// =====================
.#{$ns}flex-container {
    display: flex !important;
    flex-flow: column;
    height: 100vh;
    .#{$ns}flex-shrink {
        height: 100vh !important;
        flex-shrink: 2 ;
    }
    &>.#{$ns}flex-mat1 {
        height: 44px;
        order: -1 !important;
    }
    &>.#{$ns}flex-mat2 {
        height: 44px;
        order: 99 !important;
    }
}

// Interview
.#{$ns}interview {
    .mui-table-view-cell span:first-child {
        font-size: 16px;
    }
    .mui-table-view-cell span:nth-child(2) {
        font-size: $fs-m1; 
        color: $ft-g2;
    }
}
